package com.zksk.mbg.admin.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zksk.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 订单操作日志表
 * </p>
 *
 * @author Zksk Acmen
 * @since 2022-12-20
 */
@Data
@Accessors(chain = true)
@TableName("platform_log_orders_op")
@ApiModel(value = "LogOrdersOp对象", description = "订单操作日志表")
public class LogOrdersOp extends BaseEntity {

    @ApiModelProperty("表主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Integer id;

    @ApiModelProperty("订单编号")
    @TableField("orders_id")
    private Integer ordersId;

    @ApiModelProperty("订单类型")
    @TableField("orders_type")
    private Integer ordersType;

    @ApiModelProperty("操作者编号")
    @TableField("op_id")
    private Integer opId;

    @ApiModelProperty("操作者名称")
    @TableField("op_name")
    private Integer opName;

    @ApiModelProperty("操作者类型")
    @TableField("op_type")
    private Integer opType;

    @ApiModelProperty("日志i信息")
    @TableField("message")
    private Integer message;

    @ApiModelProperty("删除标识（0 正常，2 已删除）")
    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @TableLogic
    private Integer delFlag;


    public static final String ID = "id";

    public static final String ORDERS_ID = "orders_id";

    public static final String ORDERS_TYPE = "orders_type";

    public static final String OP_ID = "op_id";

    public static final String OP_NAME = "op_name";

    public static final String OP_TYPE = "op_type";

    public static final String MESSAGE = "message";

    public static final String DEL_FLAG = "del_flag";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
